package com.yykj.drup.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yykj.drup.server.model.DoctorStore;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zengg
 * @since 2022-03-10
 */
public interface DoctorStoreService extends IService<DoctorStore> {

    boolean insertDoctor(String doctocId,Integer[] ids);

    /**
     * 删除医生常用药店
     * @param doctorId
     * @param storeId
     * @return
     */
    Integer doctorRemoveStore(String doctorId,Integer storeId);
    /**
     *查询
     * @param doctorId
     * @param storeId
     * @return
     */
    DoctorStore findByDoctorIdAndStoreId(String doctorId,Integer storeId);

    /**
     * 查询医生常用药店最大排序值
     * @param doctocId
     * @return
     */
    Integer findMaxSortValue(String doctocId);

    /**
     * 获取排序后医生设置的常用药店标识集合
     * @param doctocId
     * @return 倒序返回药店ID
     */
    List<Integer> findStoreIdsSortByDoctocId(String doctocId);
}
